package businessLogic;

import vo.CatalogVO;
import enums.BLToViewResultMessage;
import businessLogicService.CatalogBLService;

public class CatalogController implements CatalogBLService {

	@Override
	public CatalogVO showCatalog() {
		return new CatalogVO();
	}

	@Override
	public BLToViewResultMessage addCatalog(int subCatalogID, String catalogName) {
		if (subCatalogID > 0) {
			return BLToViewResultMessage.ADD_CATALOG_SUCCESS;
		}
		return null;
	}

	@Override
	public BLToViewResultMessage deleteCatalog(int catalogID) {
		if (catalogID > 0) {
			return BLToViewResultMessage.DELETE_CATALOG_SUCCESS;
		}
		return null;
	}

	@Override
	public BLToViewResultMessage modifyCatalog(int catalogID, int subCatalogID,
			String catalogName) {
		if (catalogID > 0) {
			return BLToViewResultMessage.MODIFY_CATALOG_SUCCESS;
		}
		return null;
	}

}
